﻿@using MediaGarden.Models;
@{
    /* HTML5 video view
    */
    int width = Model.DisplayWidth;
    int height = Model.DisplayHeight;
    bool autoplay = (Model.AutoPlay == null) ? false : Model.AutoPlay;
    
    // TODO: Support the various options of HTML5 video; loop, audio, poster, autoplay, preload; although these can easily be set with template overrides
}
<video src="@Model.MediaUrl" controls="controls" title="@Model.Title" autoplay="@autoplay" @if(width>0){<text> width="@width"</text>}@if(height>0){<text> height="@height"</text>}>
    Sorry, your browser does not support HTML5 video
</video>